import org.apache.shiro.crypto.hash.Md5Hash;

public class PasswordUtil {
    public static void main(String[] args) {
        // 加密工具类[密码,盐,散列次数]
        String md5Pwd = new Md5Hash("123456", "abc@qq.com", 2).toString();
        String md5Pwd1 = new Md5Hash("123456", "123@qq.com", 2).toString();
        System.out.println(md5Pwd);//c64fdf838579e7f64676322180a9e0a7
        System.out.println(md5Pwd1);//17ad0bbc23c6268e0bcd3086fb36c485
    }
}
